package net.pessu.android.shoppoid.gui;

import net.pessu.android.shoppoid.R;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

public class ButtonList extends Button {

	private double taux;

	private boolean selected;

	public ButtonList(Context context) {
		super(context);
	}

	public ButtonList(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public ButtonList(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}


	public void select() {
		setSelected(true);
		setBackgroundResource(R.drawable.sacvioletsel);
	}

	public void unSelect() {
		setSelected(false);
		setBackgroundResource(R.drawable.sacviolet);
	}

	/**
	 * @return the selected
	 */
	public boolean isSelected() {
		return selected;
	}

	/**
	 * @param selected
	 *            the selected to set
	 */
	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	/**
	 * @return the taux
	 */
	public double getTaux() {
		return taux;
	}

	/**
	 * @param taux
	 *            the taux to set
	 */
	public void setTaux(double taux) {
		this.taux = taux;
	}

}
